package com.ly.heart.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.ly.common.utils.DateUtils;
import com.ly.heart.mapper.KingProcureRefundMaterialDetailMapper;
import com.ly.heart.service.IKingProcureRefundMaterialDetailService;
import org.springframework.stereotype.Service;
import com.ly.heart.domain.KingProcureRefundMaterialDetailEntity;

import javax.annotation.Resource;

/**
 * 金蝶-采购退料物料明细其他信息Service业务层处理
 *
 * @author cxl
 * @date 2024-07-16
 */
@Service
public class KingProcureRefundMaterialDetailServiceImpl extends ServiceImpl<KingProcureRefundMaterialDetailMapper,KingProcureRefundMaterialDetailEntity> implements IKingProcureRefundMaterialDetailService {

    @Resource
    private KingProcureRefundMaterialDetailMapper kingProcureRefundMaterialDetailMapper;

    /**
     * 查询金蝶-采购退料物料明细其他信息
     *
     * @param id 金蝶-采购退料物料明细其他信息ID
     * @return 金蝶-采购退料物料明细其他信息
     */
    @Override
    public KingProcureRefundMaterialDetailEntity selectKingProcureRefundMaterialDetailEntityById(String id)
    {
        return kingProcureRefundMaterialDetailMapper.selectKingProcureRefundMaterialDetailEntityById(id);
    }

    /**
     * 查询金蝶-采购退料物料明细其他信息列表
     *
     * @param kingProcureRefundMaterialDetailEntity 金蝶-采购退料物料明细其他信息
     * @return 金蝶-采购退料物料明细其他信息
     */
    @Override
    public List<KingProcureRefundMaterialDetailEntity> selectKingProcureRefundMaterialDetailEntityList(KingProcureRefundMaterialDetailEntity kingProcureRefundMaterialDetailEntity)
    {
        return kingProcureRefundMaterialDetailMapper.selectKingProcureRefundMaterialDetailEntityList(kingProcureRefundMaterialDetailEntity);
    }

    /**
     * 新增金蝶-采购退料物料明细其他信息
     *
     * @param kingProcureRefundMaterialDetailEntity 金蝶-采购退料物料明细其他信息
     * @return 结果
     */
    @Override
    public int insertKingProcureRefundMaterialDetailEntity(KingProcureRefundMaterialDetailEntity kingProcureRefundMaterialDetailEntity)
    {
        kingProcureRefundMaterialDetailEntity.setCreateTime(DateUtils.getNowDate());
        return kingProcureRefundMaterialDetailMapper.insertKingProcureRefundMaterialDetailEntity(kingProcureRefundMaterialDetailEntity);
    }

    /**
     * 修改金蝶-采购退料物料明细其他信息
     *
     * @param kingProcureRefundMaterialDetailEntity 金蝶-采购退料物料明细其他信息
     * @return 结果
     */
    @Override
    public int updateKingProcureRefundMaterialDetailEntity(KingProcureRefundMaterialDetailEntity kingProcureRefundMaterialDetailEntity)
    {
        kingProcureRefundMaterialDetailEntity.setUpdateTime(DateUtils.getNowDate());
        return kingProcureRefundMaterialDetailMapper.updateKingProcureRefundMaterialDetailEntity(kingProcureRefundMaterialDetailEntity);
    }

    /**
     * 批量删除金蝶-采购退料物料明细其他信息
     *
     * @param ids 需要删除的金蝶-采购退料物料明细其他信息ID
     * @return 结果
     */
    @Override
    public int deleteKingProcureRefundMaterialDetailEntityByIds(String[] ids)
    {
        return kingProcureRefundMaterialDetailMapper.deleteKingProcureRefundMaterialDetailEntityByIds(ids);
    }

    /**
     * 删除金蝶-采购退料物料明细其他信息信息
     *
     * @param id 金蝶-采购退料物料明细其他信息ID
     * @return 结果
     */
    @Override
    public int deleteKingProcureRefundMaterialDetailEntityById(String id)
    {
        return kingProcureRefundMaterialDetailMapper.deleteKingProcureRefundMaterialDetailEntityById(id);
    }
}
